home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Converters / Convert_FONT / Source / shared.subproj / TextFile.h < prev    next >
Text File  |  1995-06-12  |  3KB  |  65 lines

  1. /***********************************************************************\
  2. Common class for accessing text files in all Convert programs
  3. Copyright (C) 1993 David John Burrowes
  4.  
  5. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version.
  6.  
  7. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  8.  
  9. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  10.  
  11. The author, David John Burrowes, can be reached at:
  12.     davidjohn@kira.net.netcom.com
  13.     David John Burrowes
  14.     1926 Ivy #10
  15.     San Mateo, CA 94403-1367
  16. \***********************************************************************/
  17.  
  18. /*
  19. ====================================================================
  20. This is the interface file for the TextFile class.  Full documentation for this class can be found in the TextFile.rtf file.  I will not duplicate all that fine information here.
  21.     This is $Revision: 1.3 $ of this file
  22.     It was last modified by $Author: death $ on $Date: 93/04/04 23:45:28 $
  23. Note that this file was created while using the New Century Schoolbook Roman typeface.  You may find that some things line up strangely if you don't use that family.
  24.  *$Log:    TextFile.h,v $
  25.  * Revision 1.3  93/04/04  23:45:28  death
  26.  * Sun Apr  4 23:45:27 PDT 1993
  27.  * 
  28.  * Revision 1.2  93/01/10  15:08:56  death
  29.  * Sun Jan 10 15:08:55 PST 1993
  30.  * 
  31.  * Revision 1.1  92/07/26  13:58:43  death
  32.  * Initial revision
  33.  * 
  34.  * 
  35. ====================================================================
  36. */
  37.  
  38. //
  39. // Import our parent class' definition
  40. //
  41. #import "File.h"
  42. #import "common.h"
  43. //
  44. //    Define our interface.   Again, see the TextFile.rtf document for general info.
  45. //
  46. @interface TextFile:File
  47. {
  48. }
  49. - WriteInteger: (Integer) theInt;
  50. - WritePositiveInteger: (PositiveInteger) theInt;
  51. - WriteReal: (Real) theReal;
  52. - UnGetCharacter;
  53. - (Character) GetCharacter;
  54. - (Character) LookAtNextCharacter;
  55. - (Integer) GetNumber;
  56. - (Byte) GetHexByte;
  57. - WriteText: (CString) theLine;
  58. - WriteTextLine: (CString) theLine;
  59. - WriteTextUsing: (CString) buffer WithFormat: (CString) format, ...;
  60.  
  61. - AppendFrom: sourceFile;
  62.  
  63. @end
  64. #define    ERR_BADREAD    -4001    /*Arbitrary.  I need a better error code organization */
  65.